package bigdata.mappingproperties;


/**
 * 描述:
 *
 * @author 002465
 * @created 2017/6/26 11:12
 * @since v1.0.0
 */
public class ConfigProperties extends  BaseProperties{
    private volatile static ConfigProperties configProperties;

    private ConfigProperties(){
        this.path = "/properties/config.properties";
    }

    private static final String domain = "domain";
    private static final String xdFrontJsUrl = "xdFrontJsUrl";
    private static final String taskParamIp = "taskParamIp";

    public String getXdFrontJsUrl(){
        return getValue(xdFrontJsUrl);
    }

    public String getDomainValue() {
        return getValue(domain);
    }


    public static ConfigProperties create(){
        if(configProperties == null){
            synchronized (ConfigProperties.class){
                configProperties = new ConfigProperties();
            }
        }
        return  configProperties;
    }
}
